package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "资金管理")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatThCommissionApplicationFeign {

    /**
     * 资金管理_提现
     * @param jsonObject
     * @param result
     * @return
     */
    @ApiOperation("资金管理_提现")
    @PostMapping("/wechat/member/thcommissionapplication/addthcommissionapplication")
    String addThCommissionApplication(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);

    @RequestMapping({"/wechat/member/thcommissionapplication/thcommissionapplicationlist"})
    String thCommissionApplicationServiceList(@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

}
